#ifndef PHDRIVER_TIMER_H
#define PHDRIVER_TIMER_H

#ifdef __cplusplus
extern "C" {
#endif 


/*********************开始************************/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
typedef enum{
    PH_DRIVER_TIMER_SECS       = 1,             /**< Seconds timer.      S*/
    PH_DRIVER_TIMER_MILLI_SECS = 1000,          /**< Milliseconds timer. MS */
    PH_DRIVER_TIMER_MICRO_SECS = 1000000        /**< Microseconds timer. US */
} phDriver_Timer_Unit_t;


typedef void (*pphDriver_TimerCallBck_t)(void);


/********************************************************************************
 * TIMER API's
 *******************************************************************************/

uint8_t phDriver_TimerStart(phDriver_Timer_Unit_t eTimerUnit, uint32_t dwTimePeriod, pphDriver_TimerCallBck_t pTimerCallBack);





/*********************结束************************/

#ifdef __cplusplus
}
#endif

#endif 
